package com.zy.domain;

public class User
{
    private int Id;
    private String Username;
    private String Password;
    private String Address;

    public User()
    {
        System.out.println("User类的无参构造方法被调用！");
    }

    public User(String username, String password, String address)
    {
        Username = username;
        Password = password;
        Address = address;
    }

    @Override
    public String toString()
    {
        return "User{" +
                "Id=" + Id +
                ", Username='" + Username + '\'' +
                ", Password='" + Password + '\'' +
                ", Address='" + Address + '\'' +
                '}';
    }

    public int getId()
    {
        return Id;
    }

    public void setId(int id)
    {
        Id = id;
    }

    public String getUsername()
    {
        return Username;
    }

    public void setUsername(String username)
    {
        Username = username;
    }

    public String getPassword()
    {
        return Password;
    }

    public void setPassword(String password)
    {
        Password = password;
    }

    public String getAddress()
    {
        return Address;
    }

    public void setAddress(String address)
    {
        Address = address;
    }
}
